package cn.dakaqi.api.qnzyz.util;

/**
 * Authoer:chunyang
 * ProjectName:Volunteer
 * Date: 2015/7/14.
 * Description:
 */
public class BHConstant
{
    public static String BasePath = "";
    public final static int TOKEN_TIMEOUT =	1003;//token已超时

    public static  String CLIENTID = "100009";
    public static  String PUBLICKEY = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC0FhAal1diWCkErdynsiCaw9yKuNTs7OQwoP4rYivCNXe2bgATYRrSXNih3V+UzCdIcKZr/YI2zXOdNHwxJmORmqd+vDcDm7PeFlqWHX4tiMAEiHfvJ6r3rXW2oYhNeajvX/TqPmGF/sKsIrmFitbQfzMVjQ8RiCwDIkqRed6seQIDAQAB";

    //public static String CLIENTID = "1003";
    //public static String PUBLICKEY = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCDD9BJZt2vKcpv8VLYzBY3GNvcHKPI721gfOax41TUu1WTmEZoYuYMkhLypeWeQLQktXsdCbEb9drugnMelwYTpJd4X8Dzu1g5Cr9cri5PTgrqX7RgyghKlbOmdCrKeOUV/qTp9QfOdJ1v2tY79Im0bkMR/rir0zmD7mcBwRHW8wIDAQAB";



    static{
        checkNetWork();
    }
    public static String checkNetWork()
    {
//        ResourceBundle bundle = ResourceBundle.getBundle("resources/parameter");
//        String WebRoot = bundle.getString("app.root.path");
//        if(WebRoot.contains("dakaqi.cn") == true)
//            BasePath = "https://open.qnzyz.org.cn";
//        else
//            BasePath = "http://58.252.106.168:18080";

        //BasePath = "https://open.qnzyz.org.cn";//218.94.74.194
        BasePath = "http://192.168.2.16:81";
        //log.info("BasePath============>"+BasePath);
        return BasePath;
    }
}
